/**
 * @author luguoxiang
 * @date 2021-09-07
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import { createApi, request } from '@/soar';

const basePath = '/system/user-tag';
const subject = '用户标签';
const api = createApi(basePath, subject);

export default {
  ...api,
  queryUser: (params) => request.get(`${basePath}/query-user`, { params }),
  addUser: (data) => request.post(`${basePath}/add-user`, { data }),
  removeUser: (tagId: string, userIds: string[]) =>
    request.post(`${basePath}/remove-user`, { params: { tagId }, data: userIds }),
};
